# -*- coding: utf-8 -*-
# @Time    : 2023/6/5 9:39
# @Author  : hy
# @Email   : 1596096369@qq.com
# @File    : license_page.py
# @Software: PyCharm
from pages.base_page import BasePage
from appium.webdriver.common.mobileby import MobileBy as By

class LicensePage(BasePage):
    license_locater = (By.XPATH,'//*[@resource-id="com.xiachufang:id/webview_fragment_web_view_container"]/android.webkit.WebView[1]/android.webkit.WebView[1]/android.view.View[2]/android.view.View[1]')
    #获取证照中心的营业执照模块文本
    def get_license(self):
        return self.find_element(self.license_locater).text